{let a="12:00";
let d=new Date(a);
//console.log(d);//wrong
}
{
    let a="12:00";
    let b="13:31";
let s1=convertToMinutes(a);
let s2=convertToMinutes(b);
console.log(s1,s2);

//把时间转成分钟
function convertToMinutes(str){
    let hour=parseInt(str.split(":")[0]);
    let minutes=parseInt(str.split(":")[1]);
    return hour*60+minutes;
} 
}
  


//比较小时大小